import Vue from 'vue'
import Router from 'vue-router'


//导入对应的路由组件
import Home from '../components/Home.vue'
import Member from '../components/Member.vue'
import Shopcar from '../components/Shopcar.vue'
import Search from '../components/Search.vue'
import newsList from '../components/news/newsList.vue'
import newsinfo from '../components/news/newsinfo.vue'
import photoList from '../components/photos/PhotoList.vue'
import photoinfo from '../components/photos/Photoinfo.vue'
import goodList from '../components/goods/GoodsList.vue'
import goodinfo from '../components/goods/Goodsinfo.vue'


Vue.use(Router)

export default new Router({
  linkActiveClass:'mui-active',
  routes: [
    { path: '/', redirect: '/home' },
    { path:'/Home',component:Home},
    { path:'/Member',component:Member},
    { path:'/Search',component:Search},
    { path:'/Shopcar',component:Shopcar},
    { path: '/Home/newsList', component: newsList},
    { path: '/Home/newsinfo/:id', component: newsinfo},
    { path: '/Home/photoList', component: photoList},
    { path: '/Home/photoinfo/:id', component: photoinfo},
    { path: '/home/goodslist', component: goodList},
    { path: '/home/goodsinfo/:id', component: goodinfo},
    { path: '/home/goodsDesc/:id', component: goodDesc,name:'goodsdesc'},
    { path: '/home/goodscomment/:id', component: goodsComment, name:'goodscomment'},
    


  ],
})


